{Odd number}
var
  n, i, x, c : longint;

begin
  read(n);
  x := 0;
  for i := 1 to n do
  begin
    read(c);
    x := x xor c;
  end;
  writeln(x);
end.